package com.jiesen.base.modules.login.department.service;

import com.jiesen.base.baseDao.BaseService;
import com.jiesen.base.modules.login.department.model.Department;

import java.util.List;

public interface DepartmentService extends BaseService<Department> {

    //根据省市名称查询部门信息
    public Department findDepartmentByProvinceAndCityName(String pid,String cid);

    //根据省id查询部门信息
    public List<Department> findDepartmentByProvince(Integer pid);

    //根据省名称查询部门信息
    public List<Department> findDepartmentByProvinceName(String pid);

    //根据父id查询部门信息
    public List<Department> findDepartmentByParentId(Integer pid);

    //添加用户至部门
    public int insertDepartmentUser(Integer uid,Integer did);
}
